﻿using System.Windows;
using System.Windows.Controls;
using TfsComLib.TfsBranchLib2;

namespace TfsBranchLib2.View
{
    /// <summary>
    ///     Interaction logic for BranchItemControl.xaml
    /// </summary>
    public partial class BranchItemControl : UserControl
    {
        // Using a DependencyProperty as the backing store for Branch.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BranchProperty =
            DependencyProperty.Register("Branch", typeof (BranchData), typeof (BranchItemControl),
                new FrameworkPropertyMetadata(null,
                    FrameworkPropertyMetadataOptions.None,
                    OnBranchDataChanged));

        public BranchItemControl()
        {
            InitializeComponent();
        }


        public BranchData Branch
        {
            get { return (BranchData) GetValue(BranchProperty); }
            set { SetValue(BranchProperty, value); }
        }

        private static void OnBranchDataChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
        }
    }
}